/***************************************************************************
 * File name: EPubBasicMimeTypeImp.h
 * Original author: caizhifei2003@163.com
 * Date: 2013.03.01
 ***************************************************************************/
#ifndef _EPUB_BASIC_MIME_TYPE_IMP_H_
#define _EPUB_BASIC_MIME_TYPE_IMP_H_

#include "IEPubBasicMimeType.h"
#include <string>

class EPubBasicMimeTypeImp : public IEPubBasicMimeType
{
public:

	virtual EPUB_BasicFileType GetBasicFileType() const { return EPUB_BFT_MIME_TYPE; }
	virtual EPubPointer<IEPubBuffer> Serialize() const;
	virtual EPUB_Result Deserialize(const EPubPointer<IEPubBuffer> buffer);

	virtual const char *GetMimeType() const { return m_MimeType.c_str(); }
	virtual void SetMimeType(const char *mimeType) { m_MimeType = mimeType; }

private:
	std::string					m_MimeType;
};

#endif // _EPUB_BASIC_MIME_TYPE_IMP_H_